My Go-To Strategies for Speeding Up WordPress Websites

wordpress

As someone who’s worked with countless WordPress websites (B2C mostly), I know one thing for sure: speed matters. A slow-loading site isn’t just frustrating for users—it’s bad for SEO and conversions (click lost). Over the years, I’ve developed processes for speeding up WordPress sites, balancing technical optimizations with easy-to-implement fixes. These strategies will help any business boost site’s speed without breaking a sweat.

Optimize Hosting and DNS

Every fast website starts with the right foundation. Hosting quality and DNS performance can make or break your site’s loading speed. 

Why does DNS matter? Imagine a visitor trying to access your site—it’s like dialing a number in a phone book. A slow DNS lookup adds unnecessary delays. 

If your website attracts visitors from around the world (Selling Internationally), a Content Delivery Network (CDN) is non-negotiable. CDNs store cached versions of your site on servers around the globe, ensuring faster delivery by reducing the distance between the user and the server. Cloudflare’s free DNS service is one of really good options available, and setting it up is straightforward. Just update your nameservers through your domain registrar, and you’re good to go. For many of my projects, I’ve integrated Cloudflare’s CDN features, which are free and quite stable. 

When it comes to hosting, investing in a reliable provider with solid infrastructure is key. Shared hosting might be cheap, but it often can’t handle resource-intensive WordPress sites. I recommend managed WordPress hosting for its speed and stability—providers like SiteGround, Digital Ocean or Kinsta offer great results without much technical hassle.

Choose a Good Plug-in & Optimize Image

I’ve tested dozens of caching plugins, and WP Rocket has consistently delivered the best results for both ease of use and performance. Here’s what makes it my go-to tool:

Caching: WP Rocket enables both desktop and mobile caching, ensuring visitors load pre-stored pages instead of dynamically generating them every time.
Minification: By removing unnecessary whitespace and comments from HTML, CSS, and JavaScript files, WP Rocket reduces file sizes without affecting functionality.
Lazy Loading: Images and videos only load when they’re visible on the screen, reducing initial load times dramatically.

For more advanced configurations, WP Rocket allows you to combine CSS and JavaScript files to minimize HTTP requests. However, always test these settings—some themes or plugins might not play well with combined scripts.

In terms of image optimization. Large image files are one of the most common culprits behind slow-loading pages. To tackle this, I use plugins like ShortPixel or Imagify to compress images without noticeable quality loss.

For an extra boost, serving images in WebP format has become a standard for me. WebP offers smaller file sizes compared to JPEG or PNG, making it perfect for high-performance websites. Tools like ShortPixel can automatically generate WebP versions of your images, simplifying the process.

Cut Down on Third-Party Scripts

WordPress site has every integrations and plug-ins we need—Facebook tracking, multiple analytics platforms (Google Analytics, Hotjar, and some other obscure tool no one even checked), YouTube video embeds, a third-party chatbot, and of course, those “must-have” social media share buttons, but we have loads of these plug-ins, it is going to slow things down.

By using GTmetrix’s Waterfall chart, I saw just how much time these scripts were adding. Some external services took up to 2 seconds to respond. Others were blocking page rendering, meaning the entire page was sitting there, waiting… waiting… and waiting some more.

The Fix: Be Ruthless with Your Third-Party Scripts
Once I saw the data, the solution became clear—it was time for a major cleanup.

Host Essential Scripts Locally
Some scripts, like Google Fonts, don’t actually need to be fetched from an external source every time. I downloaded the fonts my client was using, hosted them directly on their server, and boom—one less external request. Instead of waiting for Google’s servers to respond, the fonts loaded instantly. You can do the same with things like FontAwesome icons or even some JavaScript libraries.

Defer or Lazy Load Non-Essential Scripts
Not every script needs to load immediately. Take social sharing buttons, for example. If a user is just reading the page, why should we load Facebook, Twitter, and LinkedIn’s tracking scripts upfront? Instead, I set them to load only when the user scrolls near the share buttons. Same thing for YouTube videos—I replaced the embed with a static thumbnail, so the full player and tracking scripts only loaded if someone clicked play.

Eliminate the Dead Weight
The biggest speed win came from getting rid of scripts that weren’t actually needed. Turns out, my client wasn’t even using Hotjar anymore—yet it was still running in the background, slowing down every page. The chatbot? Almost no one used it, and the ones who did weren’t converting. We ditched it.

And the results? After cutting the excess and optimizing what remained, the homepage load time dropped from 6.2 seconds to 2.8 seconds. The difference was night and day—faster interactions, lower bounce rates, and a smoother experience across the board.

Professional Portfolio. © 2024 Daniel Liu